import request from '@/utils/request'

export function getAllPreRepair(pageNum) {
  return request({
    url: '/preventiveManage/all',
    method: 'GET',
    params: { pageNum }
  })
}

export function addPreRepair(data) {
  return request({
    url: '/preventiveManage/add',
    method: 'POST',
    data
  })
}

export function deletePreRepair(maintenanceTurbine) {
  return request({
    url: '/preventiveManage/delete',
    method: 'GET',
    params: { maintenanceTurbine }
  })
}

export function getNormalInfo(pageNum) {
  return request({
    url: '/Turbine/get_normal_turbine',
    method: 'GET',
    params: { pageNum }
  })
}
